package com.meals.system.service;

import com.meals.system.api.system.vo.WhitesMealIndexCategoryVO;
import com.meals.system.entity.SystemSellerCategory;
import com.meals.system.util.PageQueryUtil;
import com.meals.system.util.PageResult;

import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/10
 */
public interface WhitesMealSellerCategoryService {

    String saveCategory(SystemSellerCategory sellerCategory);

    String updateSellerCategory(SystemSellerCategory sellerCategory);

    SystemSellerCategory getSellerCategoryById(Long id);

    Boolean deleteBatch(Long[] ids);

    /**
     * 返回分类数据（首页调用）
     *
     * @return
     */
    List<WhitesMealIndexCategoryVO> getCategoriesForIndex();


    /**
     * 后台分页
     *
     * @param pageUtil
     * @return
     */
    PageResult getCategoryPage(PageQueryUtil pageUtil);

    /**
     * 根据parentId 和 level获取分类列表
     *
     * @param parentIds
     * @param categoryLevel
     * @return
     */
    List<SystemSellerCategory> selectByLevelAndParentIdsAndNumber(List<Long> parentIds, int categoryLevel);


}
